package cn.loan.service.impl;

import cn.loan.dao.InterestRateMapper;
import cn.loan.service.InterestRateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: 毛苏宇
 * @Description: You can do it!
 * @Date: Create in 20:43 2019/3/21
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class InterestRateServiceImpl implements InterestRateService {

    @Autowired private InterestRateMapper interestRateMapper;


    @Override
    public double findInterestRate() {
        return interestRateMapper.findInterestRate();
    }
}
